package com.example.demo.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@TableName("sys_dict_type")
public class DictType {

    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @TableField("TYPE_CODE")
    private String typeCode;

    @TableField("TYPE_NAME")
    private String typeName;

    @TableField("REMARK")
    private String remark;

    /**
     * 创建时间
     */
    @TableField(value="CREATED_TIME",fill = FieldFill.INSERT)
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
    private LocalDateTime createdTime;
}
